<% var formLeftSecitionPart = { %>

<div class="row cl">
	<label class="form-label col-xs-3"><span class="c-red">*</span>上级菜单：</label>
	<div class="formControls col-xs-5">
		<input type="hidden" name="parentId" id="parentId">
		<input type="text" class="input-text readonly" id="parentName" name="parentName" readonly="readonly" value="功能菜单">
	</div>
	<div class="col-xs-5"><button type="button" class="btn btn-success" onclick="modal_menu_list(1)"><i class="Hui-iconfont">&#xe68b;</i> 选择</button></div>
</div>
<div class="row cl">
	<label class="form-label col-xs-3"><span class="c-red">*</span>名称：</label>
	<div class="formControls col-xs-6">
		<input type="text" class="input-text" id="name" name="name">
	</div>
	<div class="col-xs-3"> </div>
</div>
<div class="row cl">
	<label class="form-label col-xs-3">链接：</label>
	<div class="formControls col-xs-6">
		<input type="text" class="input-text" id="href" name="href">
	</div>
	<div class="col-xs-3"> </div>
</div>
<div class="row cl">
	<label class="form-label col-xs-3">目标(target)：</label>
	<div class="formControls col-xs-6">
		<input type="text" class="input-text" id="target" name="target">
	</div>
	<div class="col-xs-3"> </div>
</div>
<div class="row cl">
	<label class="form-label col-xs-3">图标：</label>
	<div class="formControls col-xs-6">
		<i id="iconIcon" class="Hui-iconfont"></i>&nbsp;<label id="iconIconLabel">无</label>&nbsp;
		<input id="icon" name="icon" type="hidden" value=""/>
		<button type="button" class="btn btn-secondary radius" onclick="modal_icon()"><i class="Hui-iconfont">&#xe715;</i> 选择</button>
	</div>
	<div class="col-xs-3"> </div>
</div>
<div class="row cl">
	<label class="form-label col-xs-3">排序值：</label>
	<div class="formControls col-xs-6">
		<input type="text" class="input-text" id="sort" name="sort">
	</div>
	<div class="col-xs-3"> </div>
</div>
<div class="row cl">
  <label class="form-label col-xs-3">可见：</label>
  <div class="formControls col-xs-6 skin-minimal">
    <div class="radio-box">
      <input type="radio" id="isShow-1" name="isShow" value="1" checked><label for="isShow-1">显示</label>
    </div>
    <div class="radio-box">
      <input type="radio" id="isShow-2" name="isShow" value="0"><label for="isShow-2">隐藏</label>
    </div>
  </div>
  <div class="col-xs-3"> </div>
</div>
<div class="row cl">
	<label class="form-label col-xs-3">权限标识：</label>
	<div class="formControls col-xs-6">
		<input type="text" class="input-text" id="permission" name="permission">
	</div>
	<div class="col-xs-3"> </div>
</div>
<div class="row cl">
  <label class="form-label col-xs-3">备注：</label>
  <div class="formControls col-xs-6">
    <textarea id="remarks" name="remarks" cols="" rows="" class="textarea"  placeholder="备注...100个字符以内" dragonfly="true" onKeyUp="textarealength(this,100)"></textarea>
    <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
  </div>
  <div class="col-xs-3"> </div>
</div>		
<%};%>
<% var formRightSecitionPart = { %>
      <div class="panel panel-default">
        <div class="panel-header">图片预览</div>
        <div class="panel-body">xxx</div>
      </div>
<%};%>
<% var jsSecitionPart = { %>
<script type="text/javascript">
function modal_menu_list(id){
	$.post('${BASE}/sys/menu/menuTree', {columnId:id}, function(str){
	    layer.open({
	    	title:"选择上级菜单",
	    	area: ['600px', '500px'],
	        type: 1,
	        shadeClose:true,
	        content: str, //注意，如果str是object，那么需要字符拼接。
	        btn: ['选择', '取消'],
	        yes: function(index, layero){
	        	alert("选择");
	        },
	        cancel: function(index){
	        	alert("取消");
	        	
	        }
	    });
	});
}
function modal_icon(id){
	$.post('${BASE}/sys/menu/iconList', {columnId:id}, function(str){
	    layer.open({
	    	title:"选择图标",
	    	area: ['800px', '500px'],
	        type: 1,
	        shadeClose:true,
	        content: str, //注意，如果str是object，那么需要字符拼接。
	        btn: ['选择', '取消'],
	        yes: function(index, layero){
	        	alert("选择");
	        },
	        cancel: function(index){
	        	alert("取消");
	        	
	        }
	    });
	});
}
</script>
<%};
  include("/admin/inc/layout_add.html",{
  	baseUrl:BASE+'/admin/sys/menu',
  	entityName:'后台菜单',
  	isUpload:false,
  	formLeftSecition:formLeftSecitionPart,
  	formRightSecition:formRightSecitionPart,
  	jsSecition:jsSecitionPart
  }){}
 %>